﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Service_adddept : AdminPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string deptname = Request.Form["deptname"].Trim();

        if (!IsPostBack) {
            string result = "0";
            if (new Exam.Core.DAL.Department().Add(deptname))
                result = "1";
            Response.Write(result);
            Response.End();
        }
    }
}